import { execSync } from 'child_process'

// 将所有 require 改为 import
// 简单的版本检查
const currentVersion = process.versions.node
const majorVersion = parseInt(currentVersion.split('.')[0])

if (majorVersion < 14) {
  console.error('\x1b[31m[ERROR]\x1b[0m Required Node.js version >= 14')
  process.exit(1)
}
